package com.example.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

//商品分类实体类，二级分类
@Data
public class GoodsCategory {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    //分类父id 0：一级菜单
    private Integer parentId;
    private String name;
    private Integer sort;
    private String icon;
    private boolean isShow;
    private LocalDateTime createTime;
    private String picture;
    @TableField(exist = false)
    private List<GoodsCategory> children;
}